.training-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.session-start {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.session-start h2 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.session-start p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.start-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.start-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.start-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.training-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.question-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.question-type,
.question-difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.question-type {
  background: #e3f2fd;
  color: #1976d2;
}

.question-difficulty {
  background: #fff3e0;
  color: #f57c00;
}

.timer {
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
}

.question-content {
  margin-bottom: 2rem;
}

.question-content h3 {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.question-type-hint {
  padding: 0.75rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid #667eea;
  border-radius: 8px;
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.option-button {
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #333;
}

.option-button:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.option-button.selected {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-weight: 600;
}

.question-actions {
  display: flex;
  justify-content: flex-end;
}

.submit-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.result-card.correct {
  border-left: 5px solid #4caf50;
}

.result-card.incorrect {
  border-left: 5px solid #f44336;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.result-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.result-card.correct .result-header h3 {
  color: #4caf50;
}

.result-card.incorrect .result-header h3 {
  color: #f44336;
}

.result-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.result-content {
  margin-bottom: 1.5rem;
}

.answer-comparison {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.answer-comparison div {
  margin-bottom: 0.5rem;
}

.explanation {
  margin-top: 1rem;
}

.explanation strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}

.explanation p {
  line-height: 1.8;
  color: #666;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
}

.continue-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.loading-state {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  color: #666;
}

.completion-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.completion-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.completion-card h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.completion-message {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.completion-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.action-button {
  padding: 1rem 2rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-button:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.action-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.action-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Legal-BERT 相关样式 */
.thinking-tools {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tool-button {
  padding: 0.5rem 1rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-button:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.thinking-guide-panel,
.technique-tips-panel {
  background: #f8f9ff;
  border: 2px solid #e3f2fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.thinking-guide-panel h4,
.technique-tips-panel h4 {
  margin: 0 0 1rem 0;
  color: #667eea;
  font-size: 1.1rem;
}

.guidance-steps,
.guidance-warnings,
.key-facts,
.strategy-section,
.steps-section,
.traps-section {
  margin-bottom: 1rem;
}

.guidance-steps ul,
.guidance-warnings ul,
.key-facts ul,
.steps-section ol,
.traps-section ul {
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
}

.guidance-steps li,
.guidance-warnings li,
.key-facts li,
.steps-section li,
.traps-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #555;
}

.guidance-warnings {
  background: #fff3e0;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
}

.key-facts .fact-type {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.notes-section {
  margin-bottom: 1.5rem;
}

.notes-section label {
  display: block;
  width: 100%;
}

.notes-section strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.95rem;
}

.notes-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.notes-input:focus {
  outline: none;
  border-color: #667eea;
}

.thinking-analysis {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f8f9ff;
  border-radius: 12px;
  border: 2px solid #e3f2fd;
}

.thinking-analysis h4 {
  margin: 0 0 1rem 0;
  color: #667eea;
  font-size: 1.2rem;
}

.analysis-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.analysis-score .score {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.analysis-score .score.high {
  color: #4caf50;
  background: #e8f5e9;
}

.analysis-score .score.medium {
  color: #ff9800;
  background: #fff3e0;
}

.analysis-score .score.low {
  color: #f44336;
  background: #ffebee;
}

.bert-badge {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.analysis-strengths,
.analysis-weaknesses {
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.analysis-strengths {
  border-left: 4px solid #4caf50;
}

.analysis-weaknesses {
  border-left: 4px solid #f44336;
}

.analysis-strengths ul,
.analysis-weaknesses ul,
.improvement-suggestions ul {
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
}

.analysis-strengths li,
.analysis-weaknesses li,
.improvement-suggestions li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #555;
}

.reasoning-chain {
  margin: 1rem 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 2px solid #e3f2fd;
}

.reasoning-chain strong {
  display: block;
  margin-bottom: 0.75rem;
  color: #333;
}

.chain-item {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #f5f5f5;
  border-radius: 6px;
}

.chain-label {
  font-weight: 600;
  color: #667eea;
  margin-right: 0.5rem;
}

.completeness {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.completeness.complete {
  background: #e8f5e9;
  color: #4caf50;
}

.completeness.partial {
  background: #fff3e0;
  color: #ff9800;
}

.completeness.incomplete {
  background: #ffebee;
  color: #f44336;
}

.improvement-suggestions {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.debate-button {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-right: 1rem;
}

.debate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

/* 辩论模态框 */
.debate-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 2rem;
}

.debate-modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.debate-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.debate-modal-header h2 {
  margin: 0;
  color: #667eea;
  font-size: 1.5rem;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #333;
}

.debate-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .question-card,
  .result-card {
    padding: 1.5rem;
  }

  .question-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .result-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .thinking-tools {
    flex-direction: column;
  }

  .tool-button {
    width: 100%;
  }

  .debate-modal-overlay {
    padding: 0;
  }

  .debate-modal-content {
    max-height: 100vh;
    border-radius: 0;
  }

  .result-actions {
    flex-direction: column;
  }

  .debate-button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

